package org.istt.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * File entity. @author MyEclipse Persistence Tools
 */
@Entity(name = "fileCapCCMGBDS")
@Table(name = "TBL_FILE_CAP_CCMGBDS", schema = "dbo", catalog = "onegate")
public class FileCapCCMGBDS extends BaseObject<Long> implements java.io.Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String address;
    private String certificate;
    private String contactName ;
    
    private String dateOfBirth ;
    private String edu_center_address;
    private String education;
    private String edu_center_name ;
    private String email ;
    private Set<FileAttachment> fileAttachments = new HashSet<FileAttachment>(0);
    private String fullname;
    private Long id;
    private String idcard;
    private String idcard_date ;
    private String idcard_place;
    private String ly_do_cap_lai;
    private String national;
    private Date ngay_nop;
    private String placeOfBirth;
    private Boolean received;
    
    private String thu_tuc;
    private String notify_message;
	public void setNotify_message(String notify_message) {
		this.notify_message = notify_message;
	}

	@Column(name="NOTIFY_MESSAGE")
	public String getNotify_message() {
		return notify_message;
	}
	private Integer type;
	 private String fileCode;
		public void setFileCode(String fileCode) {
			this.fileCode = fileCode;
		}

		@Column(name="FILE_CODE")
		public String getFileCode() {
			return fileCode;
		}
	@Override
	public boolean equals(Object o) {
		
		return false;
	}

	@Column(name="DIA_CHI", length = 200)
	public String getAddress() {
		return address;
	}

	@Column(name="VAN_BANG", length = 100)
	public String getCertificate() {
		return certificate;
	}

	@Column(name="TEN_LIEN_HE", length = 50)
	public String getContactName() {
		return contactName;
	}

	@Column(name="NGAY_SINH", length = 15)
	public String getDateOfBirth() {
		return dateOfBirth;
	}
	@Column(name="DIA_CHI_TRUNG_TAM", length = 200)
	public String getEdu_center_address() {
		return edu_center_address;
	}

	@Column(name="TEN_TRUNG_TAM", length = 500)
	public String getEdu_center_name() {
		return edu_center_name;
	}

	@Column(name="EMAIL", length = 100)
	public String getEmail() {
		return email;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "fileCapCCMGBDS")
	public Set<FileAttachment> getFileAttachments() {
		return fileAttachments;
	}
	@Column(name="HO_TEN", length = 50)
	public String getFullname() {
		return fullname;
	}

	@Id @GeneratedValue(strategy=IDENTITY)
    @Column(name="ID", unique = true, nullable=false)
	public Long getId() {
		return id;
	}

	@Column(name="CMND", length = 15)
	public String getIdcard() {
		return idcard;
	}

	@Column(name="NGAY_CAP", length = 15)
	public String getIdcard_date() {
		return idcard_date;
	}

	@Column(name="NOI_CAP", length = 100)
	public String getIdcard_place() {
		return idcard_place;
	}

	@Column(name="LY_DO", length = 3000)
	public String getLy_do_cap_lai() {
		return ly_do_cap_lai;
	}

	@Column(name="QUOC_TICH", length = 50)
	public String getNational() {
		return national;
	}

	@Column(name="NGAY_NOP")
	public Date getNgay_nop() {
		return ngay_nop;
	}
	
	@Column(name="NOI_SINH", length = 200)
	public String getPlaceOfBirth() {
		return placeOfBirth;
	}

	@Column(name="TIEP_NHAN")
	public Boolean getReceived() {
		return received;
	}

	@Column(name="THU_TUC")
	public String getThu_tuc() {
		return thu_tuc;
	}

	@Column(name="FORM_TYPE")
	public Integer getType() {
		return type;
	}

	@Override
	public int hashCode() {
		
		return 0;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public void setDateOfBirth(String dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}

	public void setEdu_center_address(String edu_center_address) {
		this.edu_center_address = edu_center_address;
	}

	public void setEdu_center_name(String edu_center_name) {
		this.edu_center_name = edu_center_name;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public void setFileAttachments(Set<FileAttachment> fileAttachments) {
		this.fileAttachments = fileAttachments;
	}

	
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public void setIdcard_date(String idcard_date) {
		this.idcard_date = idcard_date;
	}
	
	public void setIdcard_place(String idcard_place) {
		this.idcard_place = idcard_place;
	}
	public void setLy_do_cap_lai(String ly_do_cap_lai) {
		this.ly_do_cap_lai = ly_do_cap_lai;
	}
	
	public void setNational(String national) {
		this.national = national;
	}
	
	public void setNgay_nop(Date ngay_nop) {
		this.ngay_nop = ngay_nop;
	}

	public void setPlaceOfBirth(String placeOfBirth) {
		this.placeOfBirth = placeOfBirth;
	}

	public void setReceived(Boolean received) {
		this.received = received;
	}
	
	public void setThu_tuc(String thu_tuc) {
		this.thu_tuc = thu_tuc;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	@Override
	public String toString() {
		
		return null;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	@Column(name="EDUCATION")
	public String getEducation() {
		return education;
	}
	
}